package practice;

import java.util.Arrays;
import java.util.Scanner;

public class Text05 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        String str=scan.nextLine();
        String num="1234567890";
        String upp="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        String low="abcdefghijklmnopqrstuvwxyz";
        int num1=0;
        int upp1=0;
        int low1=0;
        int fuhao=0;
        for (int i=0;i<str.length();i++){
            char a=str.charAt(i);
            if (num.indexOf(a)!=-1){
                num1++;
            }else if(upp.indexOf(a)!=-1){
                upp1++;
            }else if(low.indexOf(a)!=-1){
                low1++;
            }else {
                fuhao++;
            }
        }
        System.out.println("数字有:"+num1+"大写字母有:"+upp1+"小写字母有:"+low1+"符号有:"+fuhao);
    }
}
